import React from 'react';
import {render} from 'react-dom';
import {Router, Route, hashHistory} from 'react-router'
import getRoutes from './route';

import DemoLayout from './container/DemoLayout';

const rootElement = document.getElementById('root');
const history = hashHistory;
const routes = getRoutes();

render((
        <Router history={history}>
            {routes}
            <Route path="/demo-layout" component={DemoLayout}>Details</Route>
        </Router>
    ),
    rootElement
);
			